//  // 学术论文 a1 学术著作 a2 学术专利 a3 鉴定成果 a4 获奖成果 a5 软件著作 a6
const tablist = ['成果总览','学术论文','学术著作','学术专利','鉴定成果','获奖成果','软件著作']
// 列表页面的字段
let configmap = {
    a1:{
        title:'学术论文',
        methodName:['boardlist_new','delList','boardlist_new','getList'],// 页面增删改查 调用的四个接口，没有就''空字符串
        query:[
            {label:'论文名称',key:'name',type:'input',value:''},
            {label:'统计年度',key:'year',type:'year'},
            {label:'项目来源',key:'project',type:'selectinput',dictid:'xmly'},
            {label:'论文类型',key:'level',type:'selectinput',dictid:'lwlx'},
        ],
        columns : [// columns 中要用到 this的不行
            {
                type:'selection',
                width:60
            },
            {
                title: '论文编号',
                key: 'no',
                minWidth:100,
                tooltip:true
            },
            {
                title: '论文名称',
                key: 'name',
                minWidth:100,
                tooltip:true
            },
            {
                title: '发表/出版时间',
                key: 'time',
                minWidth:100,
                tooltip:true,
                filter:(time) => {
                    let show = formatDay(time)
                    return show
                },
            },
            {
                title: '发表/刊物论文集',
                key: 'coontentCompany',
                minWidth:100,
                tooltip:true
            },
            {
                title: '论文类型',
                key: 'level',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    //let str = dict2Label('lwlx',params.row.level)
                    return h('span',{},params.row.level||'-')
                },
            },
            {
                title: '论文发表等级',
                key: 'level2',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    //let str = dict2Label('lwlx',params.row.level)
                    return h('span',{},params.row.level2||'-')
                },
            },

            {
                title: '所属单位',
                key: 'attribution',
                minWidth:100,
                tooltip:true
            },
            {
                title: '统计年度',
                key: 'year',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    let syear = params.row.year
                    if(syear){
                        return h('Tag',{},syear)
                    }
                    return h('span',{},'-')
                },
            },
            {
                title: '项目来源',
                key: 'origin',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    // let str = dict2Label('xmly',params.row.origin)
                    return h('span',{},params.row.origin||'-')
                },
            },



            {
                title: '所属项目',
                key: 'region',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    let region = dict2Label('ssxm',params.row.region)
                    return h('span',{},region||'-')
                },
            },

            {
                title: '学校署名',
                key: 'school',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    let str = dict2Label('xxsm',params.row.school)
                    return h('span',{},str)
                },
            }

        ],
    },

    a2:{
        title:'学术著作',
        methodName:['boardlist_new','delList','boardlist_new','getList'],// 页面增删改查 调用的四个接口，没有就''空字符串
        query:[
            {label:'著作名称',key:'name',type:'input',value:''},
            {label:'统计年度',key:'year',type:'year'},
            {label:'项目来源',key:'project',type:'selectinput',dictid:'xmly'},
        ],
        columns : [// columns 中要用到 this的不行
            {
                type:'selection',
                width:60
            },
            {
                title: '著作编号',
                key: 'no',
                minWidth:100,
                tooltip:true
            },
            {
                title: '著作名称',
                key: 'name',
                minWidth:100,
                tooltip:true
            },
            {
                title: '著作类别',
                key: 'level',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    let level = dict2Label('zzlb',params.row.level)
                    return h('span',{},level)
                },
            },
            {
                title: '出版单位',
                key: 'coontentCompany',
                minWidth:100,
                tooltip:true
            },


            {
                title: '出版社级别',
                key: 'level2',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    let level = dict2Label('cbsjb',params.row.level2)
                    return h('span',{},level)
                },
            },
            {
                title: '出版时间',
                key: 'time',
                minWidth:100,
                tooltip:true,
                filter:(time) => {
                    // let time = params.row.time
                    let show = formatDay(time)
                    return show
                },
            },
            {
                title: '所属单位',
                key: 'attribution',
                minWidth:100,
                tooltip:true
            },

            {
                title: '项目来源',
                key: 'origin',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    let str = dict2Label('xmly',params.row.origin)
                    return h('span',{},str)
                },
            },
            {
                title: '出版地',
                key: 'region',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    let str = params.row.region
                    return h('div',{
                        style:{
                            'text-align':'center',
                            padding:'2px 0',
                            width:'40px',
                            'border-radius':'4px',
                            border: str == '国外' ? '1px solid var(--status-yes)' : '1px solid #19be6b',
                            color: str == '国外' ? 'var(--status-yes)' : '#19be6b'
                        },
                    },str)
                },
            },
            {
                title: '学校署名',
                key: 'school',
                minWidth:100,
                tooltip:true
            },
            {
                title: '统计年度',
                key: 'year',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    let syear = params.row.year
                    if(syear){
                        return h('Tag',{},syear)
                    }
                    return h('span',{},'-')
                },
            },
            {
                title: 'PCT专利',
                key: 'isPCT',
                minWidth:100,
                tooltip:true
            },
            {
                title: '翻译为外文',
                key: 'istrans',
                minWidth:100,
                tooltip:true
            },
            {
                title: 'ISBN号',
                key: 'isbn',
                minWidth:100,
                tooltip:true
            },
            {
                title: 'CIP号',
                key: 'cip',
                minWidth:100,
                tooltip:true
            }

        ],
    },


    a3:{
        title:'学术专利',
        methodName:['boardlist_new','delList','boardlist_new','getList'],// 页面增删改查 调用的四个接口，没有就''空字符串
        query:[
            {label:'专利名称',key:'name',type:'input',value:''},
            {label:'所属单位',key:'attribution',type:'input',value:''},
            {label:'统计年度',key:'year',type:'year'},
        ],
        columns : [// columns 中要用到 this的不行
            {
                type:'selection',
                width:60
            },
            {
                title: '专利编号',
                key: 'no',
                minWidth:100,
                tooltip:true
            },
            {
                title: '专利名称',
                key: 'name',
                minWidth:100,
                tooltip:true
            },

            {
                title: '所属单位',
                key: 'attribution',
                minWidth:100,
                tooltip:true
            },
            {
                title: '统计年度',
                key: 'year',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    let syear = params.row.year
                    if(syear){
                        return h('Tag',{},syear)
                    }
                    return h('span',{},'-')
                },
            },

            {
                title: '专利类型',
                key: 'level',
                minWidth:100,
                tooltip:true
            },
            {
                title: '合作类型',
                key: 'style',
                minWidth:100,
                tooltip:true
            },
            {
                title: '专利范围',
                key: 'region',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    let region = params.row.region
                    if(region){
                        return h('Tag',{},region)
                    }
                    return h('span',{},'-')
                },
            },
            {
                title: 'PCT专利',
                key: 'isPCT',
                minWidth:100,
                tooltip:true
            },
            {
                title: 'IPC主分类号',
                key: 'ipc',
                minWidth:100,
                tooltip:true
            },



        ],
    },


    a4:{
        title:'鉴定成果',
        methodName:['boardlist_new','delList','boardlist_new','getList'],// 页面增删改查 调用的四个接口，没有就''空字符串
        query:[
            {label:'成果名称',key:'name',type:'input',value:''},
            {label:'鉴定部门',key:'coontentCompany',type:'input',value:''},
            {label:'统计年度',key:'year',type:'year'},
        ],
        columns : [// columns 中要用到 this的不行
            {
                type:'selection',
                width:60
            },
            {
                title: '鉴定号',
                key: 'no',
                minWidth:100,
                tooltip:true
            },
            {
                title: '成果名称',
                key: 'name',
                minWidth:100,
                tooltip:true
            },

            {
                title: '鉴定部门',
                key: 'coontentCompany',
                minWidth:100,
                tooltip:true
            },

            {
                title: '鉴定时间',
                key: 'time',
                minWidth:100,
                tooltip:true,
                filter:(time) => {
                    // let time = params.row.time
                    let show = formatDay(time)
                    return show
                },
            },

            {
                title: '鉴定结论',
                key: 'level',
                minWidth:100,
                tooltip:true
            },

            {
                title: '完成形式',
                key: 'style',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    let str = dict2Label('wcxs',params.row.style)
                    return h('span',{},str)
                },
            },



            {
                title: '所属单位',
                key: 'attribution',
                minWidth:100,
                tooltip:true
            },

            {
                title: '学校署名',
                key: 'school',
                minWidth:100,
                tooltip:true
            },
            {
                title: '统计年度',
                key: 'year',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    let syear = params.row.year
                    if(syear){
                        return h('Tag',{},syear)
                    }
                    return h('span',{},'-')
                },
            }
        ],
    },


    a5:{
        title:'获奖成果',
        methodName:['boardlist_new','delList','boardlist_new','getList'],// 页面增删改查 调用的四个接口，没有就''空字符串
        query:[
            {label:'成果名称',key:'name',type:'input',value:''},
            {label:'所属单位',key:'attribution',type:'input',value:''},
            {label:'统计年度',key:'year',type:'year'},
        ],
        columns : [// columns 中要用到 this的不行
            {
                type:'selection',
                width:60
            },
            {
                title: '获奖编号',
                key: 'no',
                minWidth:100,
                tooltip:true
            },
            {
                title: '成果名称',
                key: 'name',
                minWidth:100,
                tooltip:true
            },
            {
                title: '奖励名称',
                key: 'text1',
                minWidth:100,
                tooltip:true
            },




            {
                title: '奖励类型',
                key: 'region',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                   //  let str = dict2Label('jllx',params.row.region)
                    return h('span',{},params.row.region||'-')
                },
            },

            {
                title: '发证机关',
                key: 'coontentCompany',
                minWidth:100,
                tooltip:true
            },

            {
                title: '获奖级别',
                key: 'level2',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    // let str = dict2Label('cbsjb',params.row.level2)
                    return h('span',{},params.row.level2||'-')
                },
            },

            {
                title: '奖励等级',
                key: 'level',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                   //  let str = dict2Label('cbsjb',params.row.level)
                    return h('span',{},params.row.level||'-')
                },
            },

            {
                title: '奖励类别',
                key: 'level3',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    //let str = dict2Label('cbsjb',params.row.level3)
                    return h('span',{},params.row.level3||'-')
                },
            },



            {
                title: '统计年度',
                key: 'year',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    let syear = params.row.year
                    if(syear){
                        return h('Tag',{},syear)
                    }
                    return h('span',{},'-')
                },
            },
            {
                title: '获奖日期',
                key: 'time',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    let time = params.row.time
                    if(time){
                        let year = formatDay(time)
                        return h('Tag',{},year)
                    }
                    return h('span',{},'-')
                },
            },




        ],
    },

    a6:{
        title:'软件著作',
        methodName:['boardlist_new','delList','boardlist_new','getList'],// 页面增删改查 调用的四个接口，没有就''空字符串
        query:[
            {label:'著作名称',key:'name',type:'input',value:''},
            {label:'所属项目',key:'region',type:'select',dictid:'ssxm',value:''},
            {label:'统计年度',key:'year',type:'year'},
        ],
        columns : [// columns 中要用到 this的不行
            {
                type:'selection',
                width:60
            },
            {
                title: '软著编号',
                key: 'no',
                minWidth:100,
                tooltip:true
            },
            {
                title: '软著名称',
                key: 'name',
                minWidth:100,
                tooltip:true
            },

            {
                title: '软著审批单位',
                key: 'attribution',
                minWidth:100,
                tooltip:true
            },

            {
                title: '所属项目',
                key: 'region',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    let region = dict2Label('ssxm',params.row.region)
                    return h('span',{},region||'-')
                },
            },

            {
                title: '学校署名',
                key: 'school',
                minWidth:100,
                tooltip:true
            },

            {
                title: '统计年度',
                key: 'year',
                minWidth:100,
                tooltip:true,
                render:(h,params) => {
                    let syear = params.row.year
                    if(syear){
                        return h('Tag',{},syear)
                    }
                    return h('span',{},'-')
                },
            },

            {
                title: '项目来源',
                key: 'origin',
                minWidth:100,
                tooltip:true
            },




        ],
    },





}


// 学术论文 a1 学术著作 a2 学术专利 a3 鉴定成果 a4 获奖成果 a5 软件著作 a6
// 创建编辑页面用的配置
let formconfig={
    a1:{
        formlist1:[
            {label:'论文编号',key:'no',type:'input',value:'',require:true},
            {label:'论文名称',key:'name',type:'input',value:'',require:true},
            {label:'发表/出版时间:',key:'time',type:'date',require:true},//
            {label:'发表/刊物论文集',key:'coontentCompany',type:'input',value:'',require:true},
            {label:'论文类型',key:'level',type:'selectinput',dictid:'lwlx',require:true},
            {label:'所属单位',key:'attribution',type:'input',value:'',require:true},
            {label:'统计年度',key:'year',type:'year',require:true},//
            {label:'项目来源',key:'origin',type:'selectinput',dictid:'xmly',require:true},
            {label:'所属项目',key:'region',type:'select',dictid:'ssxm',require:true},
            {label:'论文发表等级',key:'level2',type:'selectinput',dictid:'lwfbdj',require:true},
            {label:'封面图片',key:'imageUri',type:'uploadimg',value:''},
        ],
        formlist2:[
            {label:'学校署名',key:'school',type:'radio',dictid:'xxsm',require:true},

            {label:'发表范围',key:'fanwei',type:'selectinput',dictid:'fbfw',require:true},
            {label:'卷期页',key:'pagenum',type:'input',value:''},
            {label:'DOI',key:'doi',type:'input',value:''},
            {label:'ISSN号',key:'issn',type:'input',value:''},
            {label:'SN',key:'sn',type:'input',value:''},
            {label:'上传附件',key:'fileinfo',type:'uploaddoc',value:''},
            {label:'备注内容',key:'desc',type:'textarea'},
        ],
    },
    a2:{
        formlist1:[
            {label:'著作编号',key:'no',type:'input',value:'',require:true},
            {label:'著作名称',key:'name',type:'input',value:'',require:true},
            {label:'著作类别',key:'level',type:'selectinput',dictid:'zzlb',require:true},
            {label:'出版单位',key:'coontentCompany',type:'input',value:'',require:true},
            {label:'出版社级别',key:'level2',type:'selectinput',dictid:'cbsjb',require:true},
            {label:'出版时间',key:'time',type:'date',require:true},//
            {label:'所属单位',key:'attribution',type:'input',value:'',require:true},
            {label:'项目来源',key:'origin',type:'selectinput',dictid:'xmly',require:true},
            {label:'出版地',key:'region',type:'radio',options:[{label:'国内',value:'国内'},{label:'国外',value:'国外'}],require:true},
            {label:'统计年度',key:'year',type:'year',require:true},
            {label:'封面图片',key:'imageUri',type:'uploadimg',value:''},
        ],
        formlist2:[
            {label:'学校署名',key:'school',type:'radio',options:[{label:'第一单位',value:'第一单位'},{label:'非第一单位',value:'非第一单位'}],require:false},
            {label:'PCT专利',key:'isPCT',type:'radio',options:[{label:'是',value:'是'},{label:'否',value:'否'}],require:false},
            {label:'翻译为外文',key:'istrans',type:'radio',options:[{label:'是',value:'是'},{label:'否',value:'否'}],require:false},
            {label:'ISBN号',key:'isbn',type:'input',value:'',require:false},
            {label:'CIP号',key:'cip',type:'input',value:'',require:false},
            {label:'备注内容',key:'desc',type:'textarea'},
            {label:'上传附件',key:'fileinfo',type:'uploaddoc',value:''},
        ],
    },
    a3:{
        formlist1:[
            {label:'专利编号',key:'no',type:'input',value:'',require:true},
            {label:'专利名称',key:'name',type:'input',value:'',require:true},
            {label:'所属单位',key:'attribution',type:'input',value:'',require:true},
            {label:'统计年度',key:'year',type:'year',require:true},//
            {label:'专利类型',key:'level',type:'radio',dictid:'zllx',require:true},
            {label:'封面图片',key:'imageUri',type:'uploadimg',value:''},
        ],
        formlist2:[
            {label:'学校署名',key:'school',type:'radio',options:[{label:'第一单位',value:'第一单位'},{label:'非第一单位',value:'非第一单位'}],require:true},
            {label:'合作类型',key:'style',type:'hzlx',require:true},
            {label:'专利范围',key:'region',type:'radio',options:[{label:'国内',value:'国内'},{label:'国外',value:'国外'}],require:true},
            {label:'PCT专利',key:'isPCT',type:'radio',options:[{label:'是',value:'是'},{label:'否',value:'否'}],require:true},
            {label:'IPC主分类号',key:'ipc',type:'input',value:'',require:true},
            {label:'备注内容',key:'desc',type:'textarea'},
            {label:'上传附件',key:'fileinfo',type:'uploaddoc',value:''},
        ],
    },
    a4:{
        formlist1:[
            {label:'鉴定号',key:'no',type:'input',value:'',require:true},
            {label:'成果名称',key:'name',type:'input',value:'',require:true},
            {label:'鉴定部门',key:'coontentCompany',type:'input',value:'',require:true},
            {label:'鉴定日期:',key:'time',type:'date',require:true},//
            {label:'鉴定结论',key:'level',type:'selectinput',dictid:'jdjl',require:true},
            {label:'所属单位',key:'attribution',type:'input',value:'',require:true},
            {label:'完成形式',key:'style',type:'wcxs',dictid:'wcxs',require:true},
            {label:'统计年度',key:'year',type:'year',require:true},
            {label:'封面图片',key:'imageUri',type:'uploadimg',value:''},
            // {label:'合作的外单位名称',key:'text2',type:'input',require:true,show:'style_与外单位合作'},
        ],
        formlist2:[
            {label:'学校署名',key:'school',type:'radio',options:[{label:'第一单位',value:'第一单位'},{label:'非第一单位',value:'非第一单位'}],require:false},
            {label:'备注内容',key:'desc',type:'textarea'},
            {label:'上传附件',key:'fileinfo',type:'uploaddoc',value:''},

        ],
    },

    a5:{
        formlist1:[
            {label:'获奖编号',key:'no',type:'input',value:'',require:true},
            {label:'成果名称',key:'name',type:'input',value:'',require:true},
            {label:'奖励名称',key:'text1',type:'input',value:'',require:true},
            {label:'奖励类型',key:'region',type:'selectinput',dictid:'jllx',require:true},
            {label:'发证机关',key:'coontentCompany',type:'input',value:'',require:true},
            {label:'获奖级别',key:'level2',type:'selectinput',dictid:'hjjb',require:true},
            {label:'奖励等级',key:'level',type:'selectinput',dictid:'jldj',require:true},
            {label:'奖励类别',key:'level3',type:'selectinput',dictid:'jllb',require:true},
            {label:'统计年度',key:'year',type:'year',require:true},//
            {label:'获奖时间',key:'time',type:'date',require:true},//
            {label:'成果形式',key:'style',type:'input',value:'',require:true},
            {label:'所属单位',key:'attribution',type:'input',value:'',require:true},
            {label:'项目来源',key:'origin',type:'selectinput',dictid:'xmly',require:true},
            {label:'封面图片',key:'imageUri',type:'uploadimg',value:''},

        ],
        formlist2:[
            {label:'合作类型',key:'style',type:'hzlx',require:false},
            {label:'获奖金额（万元)',key:'money',type:'input',value:'',require:false},
            {label:'总参加单位数',key:'unitnum',type:'input',value:'',require:false},
            {label:'单位排名',key:'unitrank',type:'input',value:'',require:false},
            {label:'上传附件',key:'fileinfo',type:'uploaddoc',value:''},
            {label:'备注内容',key:'desc',type:'textarea'},
        ],
    },


    a6:{
        formlist1:[
            {label:'软著编号',key:'no',type:'input',value:'',require:true},
            {label:'软著名称',key:'name',type:'input',value:'',require:true},
            {label:'所属项目',key:'region',type:'select',dictid:'ssxm',require:true},
            {label:'统计年度',key:'year',type:'year',require:true},//
            {label:'审批单位',key:'attribution',type:'input',value:'',require:true},
            {label:'项目来源',key:'origin',type:'selectinput',dictid:'xmly',require:true},
            {label:'软件著作类别',key:'level',type:'selectinput',dictid:'rjzzlb',require:true},
            {label:'封面图片',key:'imageUri',type:'uploadimg',value:''},
        ],
        formlist2:[
            {label:'学校署名',key:'school',type:'radio',options:[{label:'第一单位',value:'第一单位'},{label:'非第一单位',value:'非第一单位'}],require:false},
            {label:'上传附件',key:'fileinfo',type:'uploaddoc',value:''},
            {label:'备注内容',key:'desc',type:'textarea'},
        ],
    },


}




const formatYear = (value) => {
    if(!value) return ''
    const dateTime = new Date(value);
    const year = dateTime.getFullYear();
    return  year
};

const formattime = (value) => {
    if(!value) return ''
    const dateTime = new Date(value);
    const year = dateTime.getFullYear();
    const month = String(dateTime.getMonth() + 1).padStart(2, '0');
    const day = String(dateTime.getDate()).padStart(2, '0');
    const hours = String(dateTime.getHours()).padStart(2, '0');
    const minutes = String(dateTime.getMinutes()).padStart(2, '0');
    const seconds = String(dateTime.getSeconds()).padStart(2, '0');

    const formattedDateTime = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
    return formattedDateTime
};

const formatDay = (value) => {
    if(!value) return ''
    const dateTime = new Date(value);
    const year = dateTime.getFullYear();
    const month = String(dateTime.getMonth() + 1).padStart(2, '0');
    const day = String(dateTime.getDate()).padStart(2, '0');

    const formattedDateTime = `${year}-${month}-${day}`;
    return formattedDateTime
};

const dict2Label = (dictid,value) => {
    let str=value
    let adict = sessionStorage.getItem('achievedict');  // 先取缓存的数据
    if(adict){
        let dict =  JSON.parse(adict)
        let data = dict[dictid]||[]
        data.forEach(item=>{
            if(item.value===value){
                str = item.label
            }
        })
    }
    return str
};

const date2Label = (data,value) => {
    let str=value
    if(data){
        data.forEach(item=>{
            if(item.value===value){
                str = item.label
            }
        })
    }
    return str
};

const clone = (val) => {
    if (typeof val === 'object' && val !== null) {
        return JSON.parse(JSON.stringify(val))
    } else {
        return val
    }
};




// 根据方法名，获取数据
/**
 *
 * @param apipath api的路径，调用axios的文件名
 * @param methodName api里面的方法名
 * @param params 参数
 * @returns {Promise} 回调
 */
const optionlist = (methodName,params) => { // 动态引入
    return new Promise((resolve,reject) => {
        import('@/api/achievements').then(module => { //动态引入的方法
            let method = module[methodName];
            if(method){
                method(params).then(res => {
                    let data = res.data;
                    if(data.code == 1) {

                        let list = data.data.list.map(item=>{
                            return {label:item.originName,value:item.id}
                        })
                        resolve(list)
                    }
                })
            }
        }).catch(error => {
            console.error('动态引入API方法失败：', error);
            reject(error)
        });
    })
}

const mockdata ={
    "code": 1,
    "data": {
        "scientificCountYearToList": [
            {
                "year": "2023",
                "count": 32
            },
            {
                "year": "2022",
                "count": 2
            }
        ],
        "scientificAchievementHomeToList": [
            {
                "count": 20,
                "countYear": [
                    {
                        "year": "2023",
                        "count": 18
                    },
                    {
                        "year": "2014",
                        "count": 42
                    },
                    {
                        "year": "2012",
                        "count": 32
                    }
                ],
                "type": 2,
                "typeCount": [
                    {
                        "contentType": "著作",
                        "count": 20
                    },
                    {
                        "contentType": "专著",
                        "count": 10
                    }
                ]
            },
            {
                "count": 40,
                "countYear": [
                    {
                        "year": "2023",
                        "count": 48
                    },
                    {
                        "year": "2012",
                        "count": 22
                    }
                ],
                "type": 1,
                "typeCount": [
                    {
                        "contentType": "A类权威核心",
                        "count": 50
                    },
                    {
                        "contentType": "B类重要核心",
                        "count": 10
                    },
                    {
                        "contentType": "c类重要核心",
                        "count": 18
                    }
                ]
            },
            {
                "count": 30,
                "countYear": [
                    {
                        "year": "2023",
                        "count": 28
                    },
                    {
                        "year": "2012",
                        "count": 62
                    }
                ],
                "type": 3,
                "typeCount": [
                    {
                        "contentType": "发明型",
                        "count": 120
                    },
                    {
                        "contentType": "实用型",
                        "count": 210
                    }
                ]
            },
            {
                "count": 40,
                "countYear": [
                    {
                        "year": "2023",
                        "count": 118
                    },
                    {
                        "year": "2012",
                        "count": 72
                    }
                ],
                "type": 4,
                "typeCount": [
                    {
                        "contentType": "国家级国际先进",
                        "count": 20
                    },
                    {
                        "contentType": "国家级国际领先",
                        "count": 10
                    }
                ]
            },
            {
                "count": 40,
                "countYear": [
                    {
                        "year": "2023",
                        "count": 81
                    },
                    {
                        "year": "2020",
                        "count": 2
                    },
                    {
                        "year": "2012",
                        "count": 88
                    }
                ],
                "type": 5,
                "typeCount": [
                    {
                        "contentType": "国家奖",
                        "count": 20
                    },
                    {
                        "contentType": "省级奖",
                        "count": 10
                    }
                ]
            },
            {
                "count": 40,
                "countYear": [
                    {
                        "year": "2019",
                        "count": 48
                    },
                    {
                        "year": "2012",
                        "count": 2
                    }
                ],
                "type": 6,
                "typeCount": [
                    {
                        "contentType": "计算机程序",
                        "count": 20
                    },
                    {
                        "contentType": "程序设计文档",
                        "count": 10
                    },
                    {
                        "contentType": "数据库",
                        "count": 210
                    },
                ]
            }
        ]
    },
    "message": "完成"
}



export {
    tablist,
    optionlist,
    configmap,
    formconfig,
    dict2Label,
    formatYear,
    clone,
    mockdata

}
